<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-10
 * Time: 18:10
 */

namespace app\api\controller\v1;


use app\api\controller\BaseController;
use app\api\model\City as CityModel;

class City extends BaseController
{
    protected $beforeActionList = [
        'checkPrimaryScope' => ['only' => 'getCityAll']
    ];

    // 获取开放城市列表
    public function getCityAll()
    {
        return CityModel::with('img')->order('order_sort desc')->select()->toArray();
    }
}